/**
 * 
 */
package model;

import static org.junit.Assert.*;

import org.junit.*


/**
 * @author itsaquestion
 *
 */
class ModelTest {

	static Model model

	@BeforeClass
	public static void oneTimeSetUp() {
		// one-time initialization code
		println "Testing Model"
		//model = new Model()
		
	}

	@Before
	public void setUp() {
		
	}

	/**
	 * Test method for {@link model.Model#Model()}.
	 */
	@Test
	public final void testModel() {
		
	}

	/**
	 * Test method for {@link model.Model#setup()}.
	 */
	@Test
	public final void testSetup() {
		
		//model.setup()
	}

	/**
	 * Test method for {@link model.Model#run()}.
	 */
	@Test
	public final void testRun() {
		
		//model.run()
		
	}
	
	@Test
	public final void testRandom() {
		
//		assertEquals(0.0087603930f, model.random(),3)
//		assertEquals(0.654426f, model.random(),3)
		
	}
	
	@Test
	public final void testOneof() {

		//assertEquals(1, Model.oneof([1,2,3]))
		//assertEquals(2, Model.oneof([1,2,3]))
		//assertEquals(2, Model.oneof([1,2,3]))

	}
	
	@Test		
	public final void testNof() {
		
		ArrayList l = ["a","b","c","d"].toList()
		
		
		
		println Model.nof(2, l)
		println l
		//assertEquals([6, 4, 7], model.nof(3,l.findAll{it > 2}))
		

	}
	
}
